package com.eagle.coders.core.exceptions;

/**
 * 
 * @author Anees
 *
 */
public class MinimumLengthException extends ValidationException {
	private static final long serialVersionUID = 1L;

	private Integer minLength = 0;

    public MinimumLengthException(String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MinimumLengthException(String msg, String errorMessageLocation, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, errorMessageLocation, errorCode, module, subModule, msgArgs);
    }

    public MinimumLengthException(String msg, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(msg, errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MinimumLengthException(String msg, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }

    public MinimumLengthException(String msg, Throwable cause, String errorMessageLocation, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, errorCode, module, subModule, msgArgs);
    }

    public MinimumLengthException(String msg, Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, messageKey, errorCode, module, subModule, errorData,
                msgArgs);
    }

    public MinimumLengthException(String msg, Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(msg, cause, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }

    public MinimumLengthException(Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object errorData, Object[] msgArgs) {
        super(cause, errorMessageLocation, messageKey, errorCode, module, subModule, errorData, msgArgs);
    }

    public MinimumLengthException(Throwable cause, String errorMessageLocation, String messageKey, String errorCode, String module, String subModule, Object[] msgArgs) {
        super(cause, errorMessageLocation, messageKey, errorCode, module, subModule, msgArgs);
    }

    public MinimumLengthException() {
        super();
    }

    public MinimumLengthException(String msg, String property) {
        super(msg, property);
    }

    public MinimumLengthException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public MinimumLengthException(String msg) {
        super(msg);
    }

    public MinimumLengthException(Throwable cause) {
        super(cause);
    }

    //-----------------------------------------------------------------------


    public MinimumLengthException(String msg, String property, Integer minLength) {
        super(msg, property);
        this.minLength = minLength;
    }

    public Integer getMinLength() {
        return minLength;
    }

    public void setMinLength(Integer minLength) {
        this.minLength = minLength;
    }
}
